package com.rent.auth.service;

import com.rent.auth.model.Admin;
import com.rent.auth.pojo.AdminUserDetails;
import com.rent.auth.pojo.AuthToken;
import com.rent.auth.pojo.LoginForm;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zn
 * @since 2025-01-17
 */
public interface IAdminService extends IMyBaseService<Admin,Integer> {

    AdminUserDetails loadUserByUsernameWithTenant(String username, String tenant);

    AuthToken authLogin(LoginForm loginForm);

    AuthToken authRefreshToken(String refreshToken);

    void logout();

}
